const explain = require("explain");
const uniID = require('uni-id')
const db = uniCloud.database()
const dbCmd = db.command
module.exports = class role extends explain.service {

	//添加角色
	addRole(params) {
	    let res = uniID.addRole(params);
		return res
	}
	
	//获取角色列表
	getRoleList(params) {
	    let res = uniID.getRoleList(params);
		return res
	}
	
	//获取角色信息
	getRoleInfo(params) {
	    let res = uniID.getRoleInfo(params);
		return res
	}
	
	//更新角色信息
	updateRole(params) {
	    let res = uniID.updateRole(params);
		return res
	}
	
	//删除角色信息
	deleteRole(params) {
	    let res = uniID.deleteRole(params);
		return res
	}

}